//package com.weds.frame.core.entity;
//
//import org.springframework.web.multipart.MultipartException;
//import org.springframework.web.multipart.MultipartHttpServletRequest;
//import org.springframework.web.multipart.commons.CommonsMultipartResolver;
//
//import javax.servlet.ServletRequestWrapper;
//import javax.servlet.http.HttpServletRequest;
//
///**
// * Description:
// * Author: LiuWenQing
// * Datetime: 2023/4/23 11:09
// */
//public class MyMultipartResolver extends CommonsMultipartResolver {
//
//    @Override
//    public MultipartHttpServletRequest resolveMultipart(HttpServletRequest request) throws MultipartException {
//
//        HttpServletRequest originalRequest = (HttpServletRequest) ((ServletRequestWrapper) request).getRequest();
//
//        // 构造新的请求对象（建议使用 HttpServletRequestWrapper）。
//        MultipartHttpServletRequest multipartRequest = super.resolveMultipart(originalRequest);
//
//        return multipartRequest;
//    }
//}
